package com.lemonsun.pojo;

import java.sql.Timestamp;
/*
*评论
 */
public class Reply {

    //评论id
    private int reply_id;
    //被评论的帖子id
    private int topic_id;
    //评论者
    private String author;
    //评论时间
    private Timestamp cretime;

    //评论内容
    private String content;

    public Reply() {
    }

    public Reply(int r_id, int t_id, String author, Timestamp cretime, String content) {
        this.reply_id = r_id;
        this.topic_id = t_id;
        this.author = author;
        this.cretime = cretime;
        this.content = content;
    }

    public int getR_id() {
        return reply_id;
    }

    public void setR_id(int r_id) {
        this.reply_id = r_id;
    }

    public int getT_id() {
        return topic_id;
    }

    public void setT_id(int t_id) {
        this.topic_id = t_id;
    }

    public String getAuthon() {
        return author;
    }

    public void setAuthon(String authon) {
        this.author = authon;
    }

    public Timestamp getCretime() {
        return cretime;
    }

    public void setCretime(Timestamp cretime) {
        this.cretime = cretime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Reply{" +
                "r_id=" + reply_id +
                ", t_id=" + topic_id +
                ", authon='" + author + '\'' +
                ", cretime=" + cretime +
                ", content='" + content + '\'' +
                '}';
    }
}
